package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.love.cloud.common.mybatis.entity.SimpleBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 自定义组表
 */

@Data
@Entity
@Table(name = "sys_custom_group")
@TableName("sys_custom_group")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "sys_custom_group",comment="自定义组表")
public class SysCustomGroup extends SimpleBaseEntity {

	@Column(columnDefinition = "VARCHAR(255) COMMENT '用户组名称'")
	private String name;

	@Column(columnDefinition = "VARCHAR(255) COMMENT '用户组code唯一标识'")
	private String code;

	@Column(columnDefinition = "bigint(20) COMMENT '归属用户id'")
	private Long belongUserId;

	@Column(columnDefinition = "VARCHAR(255) COMMENT '备注'")
	private String remark;
}
